Platform Explorer / Nuxeo Platform 2023.10

Component com.nuxeo.aspera.connector.doctypes

Requirements

Resolution Order

86
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="com.nuxeo.aspera.connector.doctypes">

  <require>org.nuxeo.ecm.core.CoreExtensions</require>

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
    <schema name="common-aspera" src="schemas/common-aspera.xsd" prefix="ca" />
    <schema name="aspera_search" src="schemas/aspera_search.xsd" />
    <schema name="transfer-dc" src="schemas/transfer-dc.xsd" prefix="tdc" />
  </extension>

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">

    <doctype name="Transfer" extends="File">
      <schema name="common-aspera" />
      <schema name="transfer-dc" />
      <facet name="HiddenInNavigation" />
    </doctype>

    <doctype name="AsperaSearch">
      <schema name="aspera_search" />
    </doctype>

  </extension>

  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="types">
    <types>
      <type name="Transfer">transfer_lifecyle</type>
    </types>
  </extension>

  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService" point="lifecycle">
    <lifecycle name="transfer_lifecyle" defaultInitial="draft">
      <transitions>
        <transition name="to_started" destinationState="started">
          <description />
        </transition>
        <transition name="to_pending" destinationState="pending">
          <description />
        </transition>
        <transition name="to_completed" destinationState="completed">
          <description />
        </transition>
        <transition name="to_failed" destinationState="failed">
          <description />
        </transition>
      </transitions>
      <states>
        <state name="draft" description="When the transfer is not started - can be modified" initial="true">
          <transitions>
            <transition>to_started</transition>
          </transitions>
        </state>
        <state name="started" description="When the transfer started (no files uploaded yet) - cannot be modified">
          <transitions>
            <transition>to_started</transition>
            <transition>to_pending</transition>
          </transitions>
        </state>
        <state name="pending" description="When the transfer started to have files uploaded - cannot be modified">
          <transitions>
            <transition>to_failed</transition>
            <transition>to_completed</transition>
          </transitions>
        </state>
        <state name="completed" description="When the transfer is completed - cannot be modified">
          <transitions>

          </transitions>
        </state>
        <state name="failed" description="When the transfer is completed but some files failed - can be modified">
          <transitions>
            <transition>to_pending</transition>
          </transitions>
        </state>
      </states>
    </lifecycle>
  </extension>

  <extension point="adapters" target="org.nuxeo.ecm.core.api.DocumentAdapterService">
    <adapter class="com.nuxeo.aspera.connector.adapter.Transfer"
             factory="com.nuxeo.aspera.connector.adapter.AdaptersFactory" />
  </extension>

</component>